<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>11</title>
</head>
<body>
<script>
  //从随机产生某个[1-100]十进制整数，转换成对应的二进制整数并输出
  var num=Math.floor(Math.random()*101);
  console.log(num+"对应的二进制整数为"+num.toString(2));
</script>
</body>
</html>